package com.yourwork.dao.imp;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.yourwork.common.jpa.StaffManagementRepositoey;
import com.yourwork.common.jpa.SalaryRepositoey;
import com.yourwork.dao.SalaryDao;
import com.yourwork.model.Wage;
import com.yourwork.view.model.EmployeeManageSum;
@Repository(value="salaryDao")
public class SalaryDaolmp implements SalaryDao {
	@Autowired
	private StaffManagementRepositoey employeeManageRepositoey;
	@Autowired
	private SalaryRepositoey salaryRepositoey;
	public EmployeeManageSum querySalary(String number,int dateMonth) {
		// TODO Auto-generated method stub
		return employeeManageRepositoey.querySalary(number,dateMonth);
	}

	public void insertSalary(Wage s) {
		// TODO Auto-generated method stub
		salaryRepositoey.save(s);
	}

	public int count() {
		// TODO Auto-generated method stub
		return (int) salaryRepositoey.count();
	}
	
}
